package com.bristua.barcode.customer.controller;

import com.bristua.barcode.common.bean.Result;
import com.bristua.barcode.common.util.HandleResultUtil;
import com.bristua.barcode.customer.biz.AddCustomerBankBiz;
import com.bristua.barcode.customer.model.condition.AddCustomerBankParams;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AddCustomerBankController {

    @Autowired
    private AddCustomerBankBiz addCustomerBankBiz;

    @PostMapping(value = "/customer/add/bank")
    public Result addCustomerBank(@RequestBody AddCustomerBankParams addCustomerBankParams){
        addCustomerBankBiz.addCustomerBank(addCustomerBankParams);
        return HandleResultUtil.addSuccessResult();
    }
}
